const service = require('../../utils/service').service

module.exports.cartList = (userId) => service({ url: "/medicine/shopcart/" + userId })
module.exports.countChange = ({ id, value }) => service({ url: `/medicine/shopcart/addorminus?id=${id}&value=${value}`, method: "post"})
module.exports.remove = (id) => service({ url: "/medicine/shopcart/" + id, method: "delete" })
module.exports.addcart = (data) => service({ url: "/medicine/shopcart", data, method: "post" })
module.exports.submitOder = (data) => service({ url: "/medicine/order", data, method: "post" })